<h3>Edit User</h3><br />
<?php echo validation_errors(); ?>
<?php echo form_open('users/update') ?>
<?php foreach ($users as $user): ?>
    <table>
        <tr>
            <td>Name:*</td>
            <td><?php echo form_input('name', $user->name) ?></td>
        </tr>
        <tr>
            <td>Username:*</td>
            <td><?php echo form_input('username', $user->username) ?></td>
        </tr>
        <tr>
            <td>Email:*</td>
            <td><?php echo form_input('email', $user->email) ?></td>
        </tr>
        <tr>
            <td>Password:*</td>
            <td><?php echo form_password('password') ?></td>
        </tr>
        <tr>
            <td>Verify Password:*</td>
            <td><?php echo form_password('verify_password') ?></td>
        </tr>
        <tr>
            <td>Last name:</td>
            <td><?php echo form_input('last_name', $user->last_name) ?></td>
        </tr>
        <tr>
            <td>User level:</td>
            <td>
                <?php
                $options = $drop;
                $batch = $user->user_level;
                echo form_dropdown('user_level', $options, $batch);
                ?>
            </td>
        </tr>
        <tr>
            <td><?php echo form_hidden('id', $user->id) ?></td>
            <td><?php echo form_submit('submit', 'Update', "class = 'button'") ?></td>
        </tr>
    </table>
<?php endforeach ?>
<?php echo form_close() ?>
